//
//  GoToSCA.m
//  Staff
//
//  Created by caiyao on 1/15/15.
//
//

#import "GoToSCA.h"
#import "AppDelegate.h"
#import "MainViewController.h"

@implementation GoToSCA

- (void)excute {
    
    NSString *menuId = [self.command.functionParamsDic objectForKey:@"id"];
    
    [self.hookViewController.navigationController popToViewController:(MainViewController*)[(AppDelegate *)[[UIApplication sharedApplication] delegate] viewController] animated:YES];
    
    [(MainViewController*)[(AppDelegate *)[[UIApplication sharedApplication] delegate] viewController] changeMenuBackFromGreenWithMenuId:menuId];
    [[NSNotificationCenter defaultCenter] postNotificationName:COMMAND_EXCUTE_DONE_NOTIFICATION object:self];


}

@end
